package com.yuyou.weixin.service;

import java.util.List;

import com.yuyou.weixin.entity.SrsActivity;
import com.yuyou.weixin.vo.req.ReqAddPrize;
import com.yuyou.weixin.vo.req.ReqCloseActivity;
import com.yuyou.weixin.vo.resp.RespActivityHome;
import com.yuyou.weixin.vo.resp.UserInfoExcel;

public interface ISrsActivityService {
    int deleteByPrimaryKey(Long srsActivityId);

    int insert(SrsActivity record);

    SrsActivity selectByPrimaryKey(Long srsActivityId);

    int updateByPrimaryKeySelective(SrsActivity record);
    
    SrsActivity selectBySrsUserId(Long srsUserId,String projectCode);

    RespActivityHome home(Long srsActivityId,String openId,String headImg,String name,String projectCode);
    
    Long myActivity(String openId,String headImg,String name,String projectCode);
    
    boolean prize(ReqAddPrize reqAddPrize)throws Exception;
    
    boolean closeActivity(ReqCloseActivity reqCloseActivity)throws Exception;
    

    List<Long> findCompletedNoUpdate(Integer activeCount);

    void updateByIds(List<Long> list);

    Integer findActiveCountBYOpenId(String openId,String projectCode);

    void updatePrizeByOpenId(ReqAddPrize reqAddPrize);

    List<UserInfoExcel> findUserInfo(String projectCode);

	void closeByOpenId(ReqCloseActivity reqCloseActivity);
}
